﻿<Window x:Class="WPFToolBarExample.View.NewStudentView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="New Student "
        SizeToContent="WidthAndHeight"
        WindowStartupLocation="CenterScreen"
        WindowStyle="ToolWindow">
  <Grid>
    <Grid.RowDefinitions>
      <RowDefinition Height="Auto" />
      <RowDefinition Height="Auto" />
      <RowDefinition Height="Auto" />
    </Grid.RowDefinitions>
    <Grid.ColumnDefinitions>
      <ColumnDefinition Width="Auto" />
      <ColumnDefinition Width="*" />
    </Grid.ColumnDefinitions>

    <TextBlock Grid.Row="0"
               Grid.Column="0"
               Margin="5"
               HorizontalAlignment="Left"
               VerticalAlignment="Center"
               Text="Name:" />
    <TextBox Grid.Row="0"
             Grid.Column="1"
             Width="100"
             Margin="5"
             HorizontalAlignment="Left"
             VerticalAlignment="Center"
             Text="{Binding Name}" />
    <TextBlock Grid.Row="1"
               Grid.Column="0"
               Margin="5"
               HorizontalAlignment="Left"
               VerticalAlignment="Center"
               Text="Class:" />
    <TextBox Grid.Row="1"
             Grid.Column="1"
             Width="100"
             Margin="5"
             HorizontalAlignment="Left"
             VerticalAlignment="Center"
             Text="{Binding Class}" />
    <Button Grid.Row="2"
            Grid.Column="1"
            Margin="5"
            HorizontalAlignment="Right"
            VerticalAlignment="Center"
            Command="{Binding CloseCommand}"
            Content="OK" />
  </Grid>
</Window>
